package com.xx.happychatboot.serve.room.mapper;

import com.xx.happychatboot.serve.room.domain.entity.RoomFriend;
import io.mybatis.mapper.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 单聊房间表 Mapper 接口
 * </p>
 *
 * @author xiaoXuan
 * @since 2025-01-02
 */
public interface RoomFriendMapper extends Mapper<RoomFriend, Long> {

    /**
     * 根据房间key获取房间信息
     * @param key
     * @return
     */
    RoomFriend getRoomByRoomKey(String key);

    /**
     * 恢复房间
     * @param id
     */
    void restoreRoom(@Param("id") Long id);
}
